package com.twu.biblioteca;

import static java.lang.String.format;

/**
 * Created with IntelliJ IDEA.
 * User: Thoughtworker
 * Date: 8/22/13
 * Time: 5:17 PM
 * To change this template use File | Settings | File Templates.
 */
public class Movie {
    private String Title;
    private int Year;
    private String Director;
    private int Rating;

    Movie(String Title, int Year, String Director, int Rating) {
        this.Title = Title;
        this.Year = Year;
        this.Director = Director;
        this.Rating = Rating;
    }

    public String toString() {
        return format("%-20s %5d %-20s %2d", Title, Year, Director, Rating);
    }
}
